<template>
    <RouterView />
</template>

<script setup lang='ts' name=''>
import { ElMessage } from 'element-plus';
import router from './router';
if (localStorage.getItem('token') == undefined) {
    ElMessage.error('请先登录')
    router.push('/login')
}
</script>

<style scoped></style>